package net.starwifi.duobao.service.impl;

import net.starwifi.duobao.entity.PaymentMethod;
import net.starwifi.duobao.repository.PaymentMethodRepository;
import net.starwifi.duobao.service.BaseServiceImpl;
import net.starwifi.duobao.service.PaymentMethodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2015/9/30.
 */
@Service
public class PaymentMethodServiceImpl extends BaseServiceImpl<PaymentMethod,Long> implements PaymentMethodService {

    @Autowired
    PaymentMethodRepository repository;

    @Override
    public PaymentMethod findByName(String name) {
        return repository.findByName(name);
    }

}
